package cn.yh.hospitalappointmentsystemdemo.mapper;

import cn.yh.hospitalappointmentsystemdemo.domain.entity.DoctorSchedule;
import cn.yh.hospitalappointmentsystemdemo.domain.vo.ScheduleVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorScheduleMapper extends BaseMapper<DoctorSchedule> {
    List<ScheduleVo> getDoctorSchedule(@Param("doctorId") Long doctorId);

    void logicDeleteOutdated();

    void insertMissingSchedules();

    void updateAvailableSlots();
}
